package com.ruoyi.creditlife.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户守约记录对象 compliance_record
 * 
 * @author ddd
 * @date 2025-06-30
 */
public class ComplianceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 记录类型ID */
    @Excel(name = "记录类型ID")
    private Long recordType;

    /** 记录描述 */
    @Excel(name = "记录描述")
    private String description;

    /** 涉及金额 */
    @Excel(name = "涉及金额")
    private BigDecimal amount;

    /** 应完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "应完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dueTime;

    /** 实际完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completeTime;

    /** 完成状态 */
    @Excel(name = "完成状态")
    private String status;

    /** 信用分影响，分正负 */
    @Excel(name = "信用分影响，分正负")
    private Long creditImpact;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRecordType(Long recordType) 
    {
        this.recordType = recordType;
    }

    public Long getRecordType() 
    {
        return recordType;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setDueTime(Date dueTime) 
    {
        this.dueTime = dueTime;
    }

    public Date getDueTime() 
    {
        return dueTime;
    }

    public void setCompleteTime(Date completeTime) 
    {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime() 
    {
        return completeTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCreditImpact(Long creditImpact) 
    {
        this.creditImpact = creditImpact;
    }

    public Long getCreditImpact() 
    {
        return creditImpact;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("recordType", getRecordType())
            .append("description", getDescription())
            .append("amount", getAmount())
            .append("dueTime", getDueTime())
            .append("completeTime", getCompleteTime())
            .append("status", getStatus())
            .append("creditImpact", getCreditImpact())
            .toString();
    }
}
